home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xsw / nfsstat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-09  |  16.7 KB  |  454 lines

  1. /*
  2.  *    @(#) nfsstat.c 12.1 95/05/09 SCOINC
  3.  */
  4. /***************************************************************************
  5.  *
  6.  *    Copyright (c) 1990-1993        The Santa Cruz Operation, Inc.
  7.  *
  8.  *    All rights reserved.  No part of this program or publication may be
  9.  *    reproduced, transmitted, transcribed, stored in a retrieval system,
  10.  *    or translated into any language or computer language, in any form or
  11.  *    by any means, electronic, mechanical, magnetic, optical, chemical,
  12.  *    biological, or otherwise, without the prior written permission of:
  13.  *
  14.  *        The Santa Cruz Operation , Inc.        (408) 425-7222
  15.  *        400 Encinal St., Santa Cruz, California 95060 USA
  16.  *
  17.  **************************************************************************/
  18. /*
  19.  * Modification History
  20.  *
  21.  * S002, 27-May-93, rickra
  22.  *     Added support for pixmaps.... 
  23.  *
  24.  * S001, 01-Jan-93, rickra
  25.  *     Added support for seperate windows
  26.  *
  27.  * S000, 30-Sep-92, rickra
  28.  *     Added copyright and modification history
  29.  *    Change hard coded color referneces to user configurable.
  30.  */
  31. /*+-------------------------------------------------------------------------
  32.     nfsstat.c - XSW NFS Stats display handler
  33.     
  34.  
  35.   Defined functions:
  36.     draw_nfsstat_literals(x,y)
  37.     update_nfsstat()
  38.  
  39. --------------------------------------------------------------------------*/
  40. #include <X11/Xlib.h>
  41. #include <X11/Xutil.h>
  42. #include <X11/Intrinsic.h>
  43. #include <X11/Shell.h>
  44. #include <Xm/Xm.h>
  45. #include <Xm/MainW.h>
  46. #include <Xm/DrawingA.h>
  47.  
  48. #include "include/unixincs.h"
  49. #include "include/buttons.h"
  50. #include "include/xsw.h"
  51.  
  52. int             nfsstat_tlx;
  53. int             nfsstat_tly;
  54.  
  55. extern struct NetworkXswStruct *current_server;
  56.  
  57.  
  58. /*+-------------------------------------------------------------------------
  59.     update_nfsstat()
  60. --------------------------------------------------------------------------*/
  61. void
  62. update_nfsstat (SP)
  63.      struct NetworkXswStruct *SP;
  64.  
  65. {
  66.   Window          window = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].window;
  67.   Display        *display = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].display;
  68.   GC              gc = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].gc;
  69.   XWindowAttributes DrawAreaXYWH = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].DrawAreaXYWH;
  70.   Pixmap          pixmap = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].pixmap;
  71.  
  72.  
  73.   register int    x, y;
  74.   int             fheight = FHEIGHT;
  75.   char            s80[100];
  76.   unsigned long   pixel;
  77.   int             i;
  78.  
  79.   pixel = colorNumeric.pixel;
  80.  
  81.   y = nfsstat_tly + fheight;
  82.   x = nfsstat_tlx + Nfsstat1_TLX;
  83.  
  84.   sprintf (s80, "NFS       client    %%      server    %%    RPC        client");
  85.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, s80);
  86.   y += fheight;
  87.  
  88.  
  89.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "calls    ");
  90.   y += fheight;
  91.  
  92.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "badcalls ");
  93.   y += fheight;
  94.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "nclget   ");
  95.   y += fheight;
  96.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "nclsleep ");
  97.   y += fheight;
  98.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "null     ");
  99.   y += fheight;
  100.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "getattr  ");
  101.   y += fheight;
  102.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "setattr  ");
  103.   y += fheight;
  104.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "root     ");
  105.   y += fheight;
  106.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "lookup   ");
  107.   y += fheight;
  108.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "readlink ");
  109.   y += fheight;
  110.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "read     ");
  111.   y += fheight;
  112.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "wrcache  ");
  113.   y += fheight;
  114.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "write    ");
  115.   y += fheight;
  116.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "create   ");
  117.   y += fheight;
  118.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "remove   ");
  119.   y += fheight;
  120.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "rename   ");
  121.   y += fheight;
  122.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "link     ");
  123.   y += fheight;
  124.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "symlink  ");
  125.   y += fheight;
  126.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "mkdir    ");
  127.   y += fheight;
  128.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "rmdir    ");
  129.   y += fheight;
  130.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "readdir  ");
  131.   y += fheight;
  132.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "fsstat   ");
  133.   y += fheight;
  134.  
  135.   y = nfsstat_tly + (2 * fheight);
  136.   x = nfsstat_tlx + Nfsstat2_TLX;
  137.  
  138.   disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> clstat.ncalls);
  139.   y += fheight;
  140.  
  141.   if (current_server -> clstat.nbadcalls)
  142.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> clstat.nbadcalls);
  143.   else
  144.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> clstat.nbadcalls);
  145.   y += fheight;
  146.  
  147.  
  148.   disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> clstat.nclgets);
  149.   y += fheight;
  150.  
  151.   if (current_server -> clstat.nclsleeps)
  152.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> clstat.nclsleeps);
  153.   else
  154.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> clstat.nclsleeps);
  155.   y += fheight;
  156.  
  157.   for (i = 0; i < 18; i++)
  158.     {
  159.       disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> clstat.reqs[i]);
  160.       y += fheight;
  161.     }
  162.  
  163.  
  164.   y = nfsstat_tly + (6 * fheight);
  165.   x = nfsstat_tlx + Nfsstat3_TLX;
  166.  
  167.   if (current_server -> clstat.ncalls)
  168.     {
  169.  
  170.       for (i = 0; i < 18; i++)
  171.     {
  172.       disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%3d", colorNumeric.pixel,
  173.              ((current_server -> clstat.reqs[i] * 100) /
  174.               current_server -> clstat.ncalls));
  175.  
  176.       y += fheight;
  177.     }
  178.  
  179.     }
  180.   else
  181.     {
  182.  
  183.       for (i = 0; i < 18; i++)
  184.     {
  185.       disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%3d", colorNumeric.pixel, 0);
  186.       y += fheight;
  187.     }
  188.  
  189.     }
  190.  
  191.  
  192.   y = nfsstat_tly + fheight;
  193.   y += fheight;
  194.   x = nfsstat_tlx + Nfsstat4_TLX;
  195.  
  196.   sprintf (s80, "    N/A");
  197.  
  198.   disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> svstat.ncalls);
  199.   y += fheight;
  200.  
  201.   if (current_server -> svstat.nbadcalls)
  202.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> svstat.nbadcalls);
  203.   else
  204.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> svstat.nbadcalls);
  205.   y += fheight;
  206.  
  207.  
  208.   disp_info_text (window, display, gc, DrawAreaXYWH, x, y, pixmap, pixel, s80);
  209.   y += fheight;
  210.   disp_info_text (window, display, gc, DrawAreaXYWH, x, y, pixmap, pixel, s80);
  211.   y += fheight;
  212.  
  213.  
  214.   for (i = 0; i < 18; i++)
  215.     {
  216.       disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> svstat.reqs[i]);
  217.       y += fheight;
  218.     }
  219.  
  220.   y = nfsstat_tly + (6 * fheight);
  221.   x = nfsstat_tlx + Nfsstat5_TLX;
  222.  
  223.  
  224.   if (current_server -> svstat.ncalls)
  225.     {
  226.  
  227.       for (i = 0; i < 18; i++)
  228.     {
  229.  
  230.       disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%3d", colorNumeric.pixel,
  231.              ((current_server -> svstat.reqs[i] * 100) /
  232.               current_server -> svstat.ncalls));
  233.       y += fheight;
  234.     }
  235.  
  236.     }
  237.   else
  238.     {
  239.  
  240.       for (i = 0; i < 18; i++)
  241.     {
  242.       disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%3d", colorNumeric.pixel, 0);
  243.       y += fheight;
  244.     }
  245.  
  246.     }
  247.  
  248.   y = nfsstat_tly + fheight;
  249.   y += fheight;
  250.   x = nfsstat_tlx + Nfsstat6_TLX;
  251.  
  252.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "fsstat   ");
  253.  
  254.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "calls    ");
  255.   y += fheight;
  256.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "badcalls ");
  257.   y += fheight;
  258.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "retrans  ");
  259.   y += fheight;
  260.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "badxid   ");
  261.   y += fheight;
  262.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "timeout  ");
  263.   y += fheight;
  264.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "wait     ");
  265.   y += fheight;
  266.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "newcred  ");
  267.   y += fheight;
  268.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "peekerrs ");
  269.   y += fheight;
  270.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "badresps ");
  271.  
  272.   y = nfsstat_tly + fheight;
  273.   y += fheight;
  274.   x = nfsstat_tlx + Nfsstat7_TLX;
  275.  
  276.   disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rccalls);
  277.   y += fheight;
  278.  
  279.   if (current_server -> rcstat.rcbadcalls)
  280.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rcbadcalls);
  281.   else
  282.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rcbadcalls);
  283.   y += fheight;
  284.  
  285.   if (current_server -> rcstat.rcretrans)
  286.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rcretrans);
  287.   else
  288.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rcretrans);
  289.   y += fheight;
  290.  
  291.   if (current_server -> rcstat.rcbadxids)
  292.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rcbadxids);
  293.   else
  294.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rcbadxids);
  295.   y += fheight;
  296.  
  297.   if (current_server -> rcstat.rctimeouts)
  298.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rctimeouts);
  299.   else
  300.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rctimeouts);
  301.   y += fheight;
  302.  
  303.   if (current_server -> rcstat.rcwaits)
  304.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rcwaits);
  305.   else
  306.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rcwaits);
  307.   y += fheight;
  308.  
  309.   if (current_server -> rcstat.rcnewcreds)
  310.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rcnewcreds);
  311.   else
  312.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rcnewcreds);
  313.   y += fheight;
  314.  
  315.   if (current_server -> rcstat.rcpeekerrs)
  316.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rcpeekerrs);
  317.   else
  318.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rcpeekerrs);
  319.   y += fheight;
  320.  
  321.   if (current_server -> rcstat.rcbadresponses)
  322.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rcstat.rcbadresponses);
  323.   else
  324.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rcstat.rcbadresponses);
  325.  
  326.   y += (2 * fheight);
  327.   x = nfsstat_tlx + Nfsstat6_TLX;
  328.  
  329.  
  330.   sprintf (s80, "RPC        server");
  331.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, s80);
  332.   y += fheight;
  333.  
  334.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "calls    ");
  335.   y += fheight;
  336.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "badcalls ");
  337.   y += fheight;
  338.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "nullrecv ");
  339.   y += fheight;
  340.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "badlen   ");
  341.   y += fheight;
  342.   disp_text (window, display, gc, DrawAreaXYWH, pixmap, x, y, colorLabel.pixel, "xdrcall  ");
  343.   y += fheight;
  344.  
  345.   y = nfsstat_tly + (13 * fheight);
  346.   x = nfsstat_tlx + Nfsstat7_TLX;
  347.  
  348.  
  349.   disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rsstat.rscalls);
  350.   y += fheight;
  351.  
  352.   if (current_server -> rsstat.rsbadcalls)
  353.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rsstat.rsbadcalls);
  354.   else
  355.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rsstat.rsbadcalls);
  356.   y += fheight;
  357.  
  358.   if (current_server -> rsstat.rsnullrecv)
  359.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rsstat.rsnullrecv);
  360.   else
  361.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rsstat.rsnullrecv);
  362.   y += fheight;
  363.  
  364.   if (current_server -> rsstat.rsbadlen)
  365.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rsstat.rsbadlen);
  366.   else
  367.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rsstat.rsbadlen);
  368.   y += fheight;
  369.  
  370.   if (current_server -> rsstat.rsxdrcall)
  371.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumericAlarm.pixel, current_server -> rsstat.rsxdrcall);
  372.   else
  373.     disp_long (window, display, gc, DrawAreaXYWH, pixmap, x, y, "%7d", colorNumeric.pixel, current_server -> rsstat.rsxdrcall);
  374.   y += fheight;
  375.  
  376.  
  377. }                /* end of update_Sysinfo */
  378.  
  379. /*+-------------------------------------------------------------------------
  380.     draw_nfsstat_literals(x,y,scale_name,val1_name,val2_name,val3_name)
  381. --------------------------------------------------------------------------*/
  382. void
  383. draw_nfsstat_literals (SP)
  384.      struct NetworkXswStruct *SP;
  385.  
  386. {
  387.   Window          window = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].window;
  388.   Display        *display = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].display;
  389.   GC              gc = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].gc;
  390.   XWindowAttributes DrawAreaXYWH = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].DrawAreaXYWH;
  391.   Pixmap          pixmap = SP -> SEPERATE_WINDOWS_LIST[BUTTON_nfsstat].pixmap;
  392.  
  393.   int             x = 0;
  394.   int             y = 0;
  395.  
  396.   int             x2 = x;
  397.   int             ys = y + FASCENT;
  398.   int             yl1 = y + (FASCENT / 2) + 1;
  399.   int             yl2 = y + (FHEIGHT / 2);
  400.   int             len;
  401.   char           *cptr;
  402.   int             fheight = FHEIGHT;
  403.   int             fwidth = FWIDTH;
  404.   int             line_style = LineSolid;
  405.   int             cap_style = CapButt;
  406.   int             join_style = JoinMiter;
  407.  
  408.  
  409.  
  410.   nfsstat_tlx = x;
  411.   nfsstat_tly = y;
  412.  
  413.   /* the "background" color */
  414.   XSetForeground (display, gc, colorTitleBarBG.pixel);
  415.   XSetLineAttributes (display, gc, fheight,
  416.               line_style, cap_style, join_style);
  417. /*
  418.   XDrawLine (display, window, gc, x, yl2, x + (77 * fwidth), yl2);
  419. */
  420.   XDrawLine (display, pixmap, gc, x, yl2, x + (77 * fwidth), yl2);
  421.  
  422.   /* "---------NFS Stats-----------------" */
  423.   XSetForeground (display, gc, colorTitleBarFG.pixel);
  424.   XSetLineAttributes (display, gc, FASCENT / 2,
  425.               line_style, cap_style, join_style);
  426. /*
  427.   XDrawLine (display, window, gc,
  428.          x2, yl1,
  429.          x2 + (len = (fwidth * 5)) - FGAP, yl1);
  430. */
  431.   XDrawLine (display, pixmap, gc,
  432.          x2, yl1,
  433.          x2 + (len = (fwidth * 5)) - FGAP, yl1);
  434.   x2 += len;
  435.  
  436.   cptr = "NFS Stats";
  437. /*
  438.   XDrawString (display, window, gc, x2, ys, cptr, len = strlen (cptr));
  439.   XDrawString (display, window, gc, x2 + 1, ys, cptr, len);
  440. */
  441.   XDrawString (display, pixmap, gc, x2, ys, cptr, len = strlen (cptr));
  442.   XDrawString (display, pixmap, gc, x2 + 1, ys, cptr, len);
  443.   x2 += (fwidth * len) + FGAP + 1;
  444. /*
  445.   XDrawLine (display, window, gc, x2, yl1, x + (77 * fwidth), yl1);
  446. */
  447.   XDrawLine (display, pixmap, gc, x2, yl1, x + (77 * fwidth), yl1);
  448.  
  449.  
  450. }                /* end of draw_nfsstat_literals */
  451.  
  452. /* vi: set tabstop=4 shiftwidth=4: */
  453. /* end of nfsstat.c */
  454.